package com.just.just_bankreputationsystem.Service;

import com.just.just_bankreputationsystem.Model.Type;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface TypeService {

    int typeAdd(Type type);
@Transactional(readOnly = true)
    List<Type> selectAlltype();

    void delTypeById(int id);
    @Transactional(readOnly = true)
    Type selectTypeById(int id);

    int updateType(Type type);
}
